home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 24
/
Aminet 24 (1998)(GTI - Schatztruhe)[!][Apr 1998].iso
/
Aminet
/
dev
/
c
/
AmiVoGL_MDEV.lha
/
src
/
valloc.c
< prev
next >
Wrap
C/C++ Source or Header
|
1994-04-12
|
381b
|
22 lines
#include "vogl.h"
/*
* vallocate
*
* Allocate some memory, barfing if malloc returns NULL.
*/
char * vallocate(unsigned size)
{
char *p, buf[60];
if ((p = (char *)malloc(size)) == (char *)0) {
sprintf(buf,"vallocate: request for %d bytes returned NULL", size);
verror(buf);
}
return (p);
}
/* ------------------------------------------------------------------------ */